<template>
  <div id="app">
    <Header></Header>
    <!-- 路由组件出口地方 -->
    <router-view></router-view>
    <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
// 导入需要的组件
import Header from '@/components/Header/My_Header.vue'
import Footer from '@/components/Footer/My_Footer.vue'
export default {
  name: 'app',
  components: {
    Header,
    Footer
  },
  mounted() {
    // 通知Vuex方请求，获取数据，存储与仓库当中
    this.$store.dispatch('categoryList')
  }
}
</script>

<style lang="less">
</style>
